﻿using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pangeo.Admin.Models.HrmDb.Dto
{
    /// <summary>
    /// 加班
    /// </summary>
    public class TmAbsenceOfThrees
    {
        [Description("工号")]
        public string people_no { get; set; }

        [Description("姓名")]
        public string people_name { get; set; }

        [Description("加班ID")]
        [BsonId]
        public ObjectId _id { get; set; }

        [Description("加班申请开始时间")]
        public DateTime create_start_date { get; set; }

        [Description("加班申请结束时间")]
        public DateTime create_end_date { get; set; }

        [Description("加班申请时长")]
        public double hours { get; set; }

        /// <summary>
        /// 加班原因
        /// </summary>
        public string reason { get; set; }

        public string[] work_on_time { get; set; }

        public string[] work_off_time { get; set; }

        public string[] conclusion { get; set; }

        public double[] total_time { get; set; }

        public string[] time_zone_s { get; set; }

        public string[] time_zone_e { get; set; }

        public EffectiveDate[][] effective_date { get; set; }

        //public List<TmAbsenceOfThreeItem> items { get; set; }
    }

    public class EffectiveDate
    {
        [BsonId]
        public ObjectId _id { get; set; }

        public DateTime? start_date { get; set; }

        public DateTime? end_date { get; set; }
    }
}
